{% extends 'base.html' %}
{% load static %}
{% block title %}
    GPU机器修改
{% endblock %}
{% block page-title %}
    GPU机器修改
{% endblock %}
{% block page-content %}
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title">正在修改 {{ object.ip }}</h3></div>
                <div class="panel-body">
                    <div class=" form">
                        <form class="cmxform form-horizontal tasi-form" id="signupForm" method="post" action=""
                              novalidate="novalidate">
                            <div class="form-group ">
                                <label for="ip" class="control-label col-lg-2">IP *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="ip"
                                           value="{% if object %}{{ object.ip }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="cpu_cores" class="control-label col-lg-2">CPU核数 *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="cpu_cores"
                                           value="{% if object %}{{ object.cpu_cores }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="total_memory" class="control-label col-lg-2">内存大小(GB) *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="total_memory"
                                           value="{% if object %}{{ object.total_memory }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="gpu_numbers" class="control-label col-lg-2">GPU数量 *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="gpu_numbers"
                                           value="{% if object %}{{ object.gpu_numbers }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="area" class="control-label col-lg-2">所属矿场 *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="area"
                                           value="{% if object %}{{ object.area }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="node_status" class="control-label col-lg-2">节点状态 *</label>
                                <div class="col-lg-4">
                                    <input class=" form-control" name="node_status"
                                           value="{% if object %}{{ object.node_status }}{% endif %}" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button class="btn btn-success" type="submit">确定</button>
                                    <input type="button" class="btn btn-default" value="取消" onclick="history.go(-1);"/>
                                </div>
                            </div>
                        </form>
                    </div> <!-- .form -->
                </div> <!-- panel-body -->
            </div> <!-- panel -->
        </div> <!-- col -->
    </div> <!-- End row -->
{% endblock %}